﻿using GalaSoft.MvvmLight;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EveryBookies.Model
{
    public class BookiesData
    {
        public List<Banner> banner { get; set; }
        public List<Booky> bookies { get; set; }
        public List<Favorite> favorite { get; set; }
        public BookiesData()
        {
            banner = new List<Banner>();
            bookies = new List<Booky>();
            favorite = new List<Favorite>();
        }
    }
    public class Banner
    {
        public string id { get; set; }
        public string image { get; set; }
        public string link { get; set; }
        public string name { get; set; }
    }

    public class Booky : ViewModelBase
    {
        public string id { get; set; }
        public string title { get; set; }
        public string image { get; set; }
        public string link { get; set; }
        public int isFav { get; set; }
        public int SetisFav
        {
            get
            {
                return isFav;
            }

            set
            {
                if (isFav != value)
                {
                    isFav = value;
                    RaisePropertyChanged(() => SetisFav);
                }
            }
        }

    }


}